//
//  RootViewController.m
//  controller
//
//  Created by 张春燕 on 15-4-25.
//  Copyright (c) 2015年 zhangchunyan. All rights reserved.
//

#import "RootViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    NSLog(@"%s, %d",__FUNCTION__,__LINE__);
    self.view.backgroundColor = [UIColor redColor];
    UIView *aView = [[UIView alloc]initWithFrame:CGRectMake(20, 20, 100, 100)];
    aView.backgroundColor = [UIColor yellowColor];
    [self.view  addSubview:aView];
    [aView release];
    
    
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated
{
    
    [super viewWillAppear:animated];
    NSLog(@"%s, %d",__FUNCTION__,__LINE__);
}


- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    NSLog(@"%s, %d",__FUNCTION__,__LINE__);
    
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    NSLog(@"%s, %d",__FUNCTION__,__LINE__);
}

- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidDisappear:animated];
    NSLog(@"%s, %d",__FUNCTION__,__LINE__);
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
